/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package GUI;

import DAO.*;
import DTO.*;
import java.text.SimpleDateFormat;
import java.util.List;

import java.util.List;
import java.util.ArrayList;
import java.util.Date;
import java.util.regex.*;

import javax.swing.JOptionPane;
import javax.swing.table.DefaultTableModel;
import javax.swing.JFileChooser;

import java.util.Date;
import java.awt.Desktop;
import java.io.File;
import java.io.IOException;
import java.text.ParseException;
import java.util.HashMap;
import java.util.Map;
import java.util.logging.Level;
import java.util.logging.Logger;
import javax.swing.JFrame;
import net.sf.jasperreports.engine.JRException;
import net.sf.jasperreports.engine.JasperCompileManager;
import net.sf.jasperreports.engine.JasperFillManager;
import net.sf.jasperreports.engine.JasperPrint;
import net.sf.jasperreports.engine.JasperReport;
import net.sf.jasperreports.engine.data.JRBeanCollectionDataSource;
import net.sf.jasperreports.swing.JRViewer;


/**
 *
 * @author Luis Olave 10
 */
public class IngresoGarantiaWarrant extends javax.swing.JFrame {

    usuarioDTO user;
    garantiasDAO reg = new garantiasDAO();

    /**
     * Creates new form IngresoGarantiaWarrant
     */
    public IngresoGarantiaWarrant(usuarioDTO user) {
        this.user = user;
        initComponents();
        cargarItemsComboBoxSucursal();
        cargarItemsComboBoxTipoProducto();
        cargarItemsComboBoxMoneda();
        cargarItemsComboBoxTipoGarantia();
        txtFechaCreacion.setText(DAO.Fechas.FechaSistema());
        this.setDefaultCloseOperation(this.EXIT_ON_CLOSE);
    }

    private void cargarItemsComboBoxSucursal() {
        List<sucursalDTO> ListaSucursal = CCSucursal.listarItemSucursal();
        if (ListaSucursal != null) {
            int size = ListaSucursal.size();
            for (int i = 0; i < size; i++) {
                this.cmbSucursalWarra.addItem(ListaSucursal.get(i));
            }
        }
    }

    private void cargarItemsComboBoxTipoProducto() {
        List<tipoProductoDTO> ListaTipoProducto = CCTipoProducto.listarItemTipoProducto();
        if (ListaTipoProducto != null) {
            int size = ListaTipoProducto.size();
            for (int i = 0; i < size; i++) {
                this.cmbTipoProdWarra.addItem(ListaTipoProducto.get(i));
            }
        }
    }

    private void cargarItemsComboBoxMoneda() {
        List<monedaDTO> ListaMoneda = CCMoneda.listarItemMoneda();
        if (ListaMoneda != null) {
            int size = ListaMoneda.size();
            for (int i = 0; i < size; i++) {
                this.cmbMonedaWarra.addItem(ListaMoneda.get(i));
            }
        }
    }

    private void cargarItemsComboBoxTipoGarantia() {
        List<tipoGarantiaDTO> ListaTipoGtia = CCTipoGarantia.listarItemTipoGarantia();
        if (ListaTipoGtia != null) {
            int size = ListaTipoGtia.size();
            for (int i = 0; i < size; i++) {
                this.cmbTipoGtiaWarra.addItem(ListaTipoGtia.get(i));
            }
        }
    }
    
//    private void cargarDescripcionGarantiaWarrant()
//    {
//       String descripcionGarantiaWarrant = "Prueba warrant";
//       System.out.println(descripcionGarantiaWarrant);
//    }
//    private void cargarTxtArea(){
//    
//        
//        String cadena = "Prueba garantia warrant";
//        
//        if(txtRutGaraWarra.getText().length()>0){
//        txtDescripcionWarra.setText(cadena);
//        }
//        else
//        {
//        
//        }
//    }

    /**
     * This method is called from within the constructor to initialize the form.
     * WARNING: Do NOT modify this code. The content of this method is always
     * regenerated by the Form Editor.
     */
    @SuppressWarnings("unchecked")
    // <editor-fold defaultstate="collapsed" desc="Generated Code">//GEN-BEGIN:initComponents
    private void initComponents() {

        jLabel2 = new javax.swing.JLabel();
        jLabel1 = new javax.swing.JLabel();
        jTabbedPane1 = new javax.swing.JTabbedPane();
        jPanel1 = new javax.swing.JPanel();
        pnlIngreseRutGarante = new javax.swing.JPanel();
        lblRut = new javax.swing.JLabel();
        txtRutBuscarWarra = new javax.swing.JTextField();
        btnBuscarWarra = new javax.swing.JButton();
        pnlDatosPersoGara = new javax.swing.JPanel();
        jPanel7 = new javax.swing.JPanel();
        lblRutGara = new javax.swing.JLabel();
        lblApellidoPater = new javax.swing.JLabel();
        lblApellidoMater = new javax.swing.JLabel();
        lblNombre = new javax.swing.JLabel();
        lblFechNac = new javax.swing.JLabel();
        lblSexo = new javax.swing.JLabel();
        txtFechNacWarra = new javax.swing.JTextField();
        txtNombreWarra = new javax.swing.JTextField();
        txtApellidoMaternoWarra = new javax.swing.JTextField();
        txtApellidoPaternoWarra = new javax.swing.JTextField();
        txtRutGaraWarra = new javax.swing.JTextField();
        txtSexoWarra = new javax.swing.JTextField();
        jPanel8 = new javax.swing.JPanel();
        lblCalleAvenida = new javax.swing.JLabel();
        lblNumero = new javax.swing.JLabel();
        lblDepto = new javax.swing.JLabel();
        lblRegion = new javax.swing.JLabel();
        lblComuna = new javax.swing.JLabel();
        lblTelParticular = new javax.swing.JLabel();
        lblTelMovil = new javax.swing.JLabel();
        txtCalleAvenidaWarra = new javax.swing.JTextField();
        txtNumeroWarra = new javax.swing.JTextField();
        txtDeptoWarra = new javax.swing.JTextField();
        txtRegionWarra = new javax.swing.JTextField();
        txtComunaWarra = new javax.swing.JTextField();
        txtTelParticularWarra = new javax.swing.JTextField();
        txtTelMovilWarra = new javax.swing.JTextField();
        btnMenuPrincipal = new javax.swing.JButton();
        jPanel2 = new javax.swing.JPanel();
        pnlDescripGarantia = new javax.swing.JPanel();
        jScrollPane3 = new javax.swing.JScrollPane();
        txtOtroComentarioWarra = new javax.swing.JTextArea();
        jScrollPane4 = new javax.swing.JScrollPane();
        txtDescripcionWarra = new javax.swing.JTextArea();
        lblDescripcion = new javax.swing.JLabel();
        jPanel3 = new javax.swing.JPanel();
        pnlCreacionGaraWarra = new javax.swing.JPanel();
        jPanel4 = new javax.swing.JPanel();
        jLabel4 = new javax.swing.JLabel();
        jLabel5 = new javax.swing.JLabel();
        jLabel6 = new javax.swing.JLabel();
        jLabel7 = new javax.swing.JLabel();
        cmbTipoProdWarra = new javax.swing.JComboBox();
        cmbSucursalWarra = new javax.swing.JComboBox();
        jLabel15 = new javax.swing.JLabel();
        jLabel14 = new javax.swing.JLabel();
        jLabel13 = new javax.swing.JLabel();
        cmbMonedaWarra = new javax.swing.JComboBox();
        jLabel17 = new javax.swing.JLabel();
        txtDun14Warra = new javax.swing.JTextField();
        jcFechUltDebitoWarra = new com.toedter.calendar.JDateChooser();
        jcFechUltTasaWarra = new com.toedter.calendar.JDateChooser();
        jcFechModiWarra = new com.toedter.calendar.JDateChooser();
        txtFechaCreacion = new javax.swing.JTextField();
        jPanel5 = new javax.swing.JPanel();
        jLabel8 = new javax.swing.JLabel();
        jLabel9 = new javax.swing.JLabel();
        jLabel10 = new javax.swing.JLabel();
        jLabel11 = new javax.swing.JLabel();
        jLabel12 = new javax.swing.JLabel();
        cmbTipoGtiaWarra = new javax.swing.JComboBox();
        txtProdWarra = new javax.swing.JTextField();
        jcFechExtWarra = new com.toedter.calendar.JDateChooser();
        jcFechUltRevWarra = new com.toedter.calendar.JDateChooser();
        jcFechUltCredWarra = new com.toedter.calendar.JDateChooser();
        jPanel9 = new javax.swing.JPanel();
        jLabel16 = new javax.swing.JLabel();
        txtArchivoAdWarra = new javax.swing.JTextField();
        btnExaminarWarra = new javax.swing.JButton();
        btnAdjuntarWarra = new javax.swing.JButton();
        jPanel11 = new javax.swing.JPanel();
        lblArchivo1 = new javax.swing.JLabel();
        txtMontoInicial = new javax.swing.JTextField();
        btnMenuPrincipalWarra = new javax.swing.JButton();
        btnGrabarWarra = new javax.swing.JButton();
        btnExportaWarra = new javax.swing.JButton();
        jPanel6 = new javax.swing.JPanel();
        jPanel10 = new javax.swing.JPanel();
        jScrollPane1 = new javax.swing.JScrollPane();
        tbSalidaImpresionWarrant = new javax.swing.JTable();
        btnImprimirIngresoGarantiaWarrant = new javax.swing.JButton();
        btnMenuPrincipalWarrant = new javax.swing.JButton();
        jPanel12 = new javax.swing.JPanel();
        txtBuscarDun14 = new javax.swing.JTextField();
        btnBuscarIngresoGarantiaWarrant = new javax.swing.JButton();
        jLabel3 = new javax.swing.JLabel();

        setDefaultCloseOperation(javax.swing.WindowConstants.EXIT_ON_CLOSE);
        setTitle("INGRESO GARANTÍA WARRANT");
        setResizable(false);

        jLabel2.setIcon(new javax.swing.ImageIcon(getClass().getResource("/IMAGE/logo.JPG"))); // NOI18N

        jLabel1.setFont(new java.awt.Font("Century Gothic", 1, 18)); // NOI18N
        jLabel1.setText("INGRESO GARANTÍA WARRANT");

        jTabbedPane1.setFont(new java.awt.Font("Century Gothic", 0, 12)); // NOI18N

        pnlIngreseRutGarante.setBorder(javax.swing.BorderFactory.createTitledBorder(null, "INGRESE RUT GARANTE", javax.swing.border.TitledBorder.DEFAULT_JUSTIFICATION, javax.swing.border.TitledBorder.DEFAULT_POSITION, new java.awt.Font("Century Gothic", 1, 10), java.awt.Color.blue)); // NOI18N

        lblRut.setFont(new java.awt.Font("Century Gothic", 0, 12)); // NOI18N
        lblRut.setText("RUT");

        btnBuscarWarra.setFont(new java.awt.Font("Century Gothic", 0, 12)); // NOI18N
        btnBuscarWarra.setText("BUSCAR");
        btnBuscarWarra.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                btnBuscarWarraActionPerformed(evt);
            }
        });

        javax.swing.GroupLayout pnlIngreseRutGaranteLayout = new javax.swing.GroupLayout(pnlIngreseRutGarante);
        pnlIngreseRutGarante.setLayout(pnlIngreseRutGaranteLayout);
        pnlIngreseRutGaranteLayout.setHorizontalGroup(
            pnlIngreseRutGaranteLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(pnlIngreseRutGaranteLayout.createSequentialGroup()
                .addContainerGap()
                .addComponent(lblRut)
                .addGap(18, 18, 18)
                .addGroup(pnlIngreseRutGaranteLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING, false)
                    .addComponent(txtRutBuscarWarra)
                    .addComponent(btnBuscarWarra, javax.swing.GroupLayout.DEFAULT_SIZE, 100, Short.MAX_VALUE))
                .addContainerGap(52, Short.MAX_VALUE))
        );
        pnlIngreseRutGaranteLayout.setVerticalGroup(
            pnlIngreseRutGaranteLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, pnlIngreseRutGaranteLayout.createSequentialGroup()
                .addContainerGap(javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
                .addGroup(pnlIngreseRutGaranteLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                    .addComponent(lblRut)
                    .addComponent(txtRutBuscarWarra, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                .addComponent(btnBuscarWarra)
                .addContainerGap())
        );

        pnlDatosPersoGara.setBorder(javax.swing.BorderFactory.createTitledBorder(null, "DATOS PERSONALES GARANTE", javax.swing.border.TitledBorder.DEFAULT_JUSTIFICATION, javax.swing.border.TitledBorder.DEFAULT_POSITION, new java.awt.Font("Century Gothic", 1, 10), java.awt.Color.blue)); // NOI18N

        lblRutGara.setFont(new java.awt.Font("Century Gothic", 0, 12)); // NOI18N
        lblRutGara.setText("RUT");

        lblApellidoPater.setFont(new java.awt.Font("Century Gothic", 0, 12)); // NOI18N
        lblApellidoPater.setText("APELLIDO PATERNO");

        lblApellidoMater.setFont(new java.awt.Font("Century Gothic", 0, 12)); // NOI18N
        lblApellidoMater.setText("APELLIDO MATERNO");

        lblNombre.setFont(new java.awt.Font("Century Gothic", 0, 12)); // NOI18N
        lblNombre.setText("NOMBRE");

        lblFechNac.setFont(new java.awt.Font("Century Gothic", 0, 12)); // NOI18N
        lblFechNac.setText("FECHA NACIMIENTO");

        lblSexo.setFont(new java.awt.Font("Century Gothic", 0, 12)); // NOI18N
        lblSexo.setText("SEXO");

        txtFechNacWarra.setEditable(false);
        txtFechNacWarra.setBackground(new java.awt.Color(255, 255, 102));
        txtFechNacWarra.setDisabledTextColor(new java.awt.Color(0, 0, 204));
        txtFechNacWarra.setEnabled(false);

        txtNombreWarra.setEditable(false);
        txtNombreWarra.setBackground(new java.awt.Color(255, 255, 102));
        txtNombreWarra.setDisabledTextColor(new java.awt.Color(0, 0, 204));
        txtNombreWarra.setEnabled(false);

        txtApellidoMaternoWarra.setEditable(false);
        txtApellidoMaternoWarra.setBackground(new java.awt.Color(255, 255, 102));
        txtApellidoMaternoWarra.setDisabledTextColor(new java.awt.Color(0, 0, 204));
        txtApellidoMaternoWarra.setEnabled(false);

        txtApellidoPaternoWarra.setEditable(false);
        txtApellidoPaternoWarra.setBackground(new java.awt.Color(255, 255, 102));
        txtApellidoPaternoWarra.setDisabledTextColor(new java.awt.Color(0, 0, 204));
        txtApellidoPaternoWarra.setEnabled(false);

        txtRutGaraWarra.setEditable(false);
        txtRutGaraWarra.setBackground(new java.awt.Color(255, 255, 102));
        txtRutGaraWarra.setDisabledTextColor(new java.awt.Color(0, 0, 204));
        txtRutGaraWarra.setEnabled(false);

        txtSexoWarra.setEditable(false);
        txtSexoWarra.setBackground(new java.awt.Color(255, 255, 102));
        txtSexoWarra.setDisabledTextColor(new java.awt.Color(0, 0, 204));
        txtSexoWarra.setEnabled(false);

        javax.swing.GroupLayout jPanel7Layout = new javax.swing.GroupLayout(jPanel7);
        jPanel7.setLayout(jPanel7Layout);
        jPanel7Layout.setHorizontalGroup(
            jPanel7Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(jPanel7Layout.createSequentialGroup()
                .addContainerGap()
                .addGroup(jPanel7Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                    .addGroup(jPanel7Layout.createSequentialGroup()
                        .addComponent(lblRutGara)
                        .addGap(114, 114, 114)
                        .addComponent(txtRutGaraWarra, javax.swing.GroupLayout.PREFERRED_SIZE, 100, javax.swing.GroupLayout.PREFERRED_SIZE))
                    .addGroup(jPanel7Layout.createSequentialGroup()
                        .addGroup(jPanel7Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                            .addComponent(lblApellidoMater)
                            .addComponent(lblApellidoPater))
                        .addGap(18, 18, 18)
                        .addGroup(jPanel7Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                            .addComponent(txtApellidoPaternoWarra, javax.swing.GroupLayout.PREFERRED_SIZE, 100, javax.swing.GroupLayout.PREFERRED_SIZE)
                            .addComponent(txtApellidoMaternoWarra, javax.swing.GroupLayout.PREFERRED_SIZE, 100, javax.swing.GroupLayout.PREFERRED_SIZE)))
                    .addGroup(jPanel7Layout.createSequentialGroup()
                        .addGroup(jPanel7Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                            .addComponent(lblFechNac)
                            .addComponent(lblNombre)
                            .addComponent(lblSexo))
                        .addGap(18, 18, 18)
                        .addGroup(jPanel7Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING, false)
                            .addComponent(txtNombreWarra)
                            .addComponent(txtFechNacWarra)
                            .addComponent(txtSexoWarra, javax.swing.GroupLayout.PREFERRED_SIZE, 100, javax.swing.GroupLayout.PREFERRED_SIZE))))
                .addContainerGap(80, Short.MAX_VALUE))
        );
        jPanel7Layout.setVerticalGroup(
            jPanel7Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(jPanel7Layout.createSequentialGroup()
                .addContainerGap()
                .addGroup(jPanel7Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                    .addComponent(lblRutGara)
                    .addComponent(txtRutGaraWarra, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                .addGroup(jPanel7Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                    .addComponent(lblApellidoPater)
                    .addComponent(txtApellidoPaternoWarra, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                .addGroup(jPanel7Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                    .addComponent(lblApellidoMater)
                    .addComponent(txtApellidoMaternoWarra, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                .addGroup(jPanel7Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                    .addComponent(lblNombre)
                    .addComponent(txtNombreWarra, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                .addGroup(jPanel7Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                    .addComponent(lblFechNac)
                    .addComponent(txtFechNacWarra, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                .addGroup(jPanel7Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                    .addComponent(lblSexo)
                    .addComponent(txtSexoWarra, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))
                .addContainerGap(javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))
        );

        lblCalleAvenida.setFont(new java.awt.Font("Century Gothic", 0, 12)); // NOI18N
        lblCalleAvenida.setText("CALLE / AVENIDA");

        lblNumero.setFont(new java.awt.Font("Century Gothic", 0, 12)); // NOI18N
        lblNumero.setText("NÚMERO");

        lblDepto.setFont(new java.awt.Font("Century Gothic", 0, 12)); // NOI18N
        lblDepto.setText("DEPTO.");

        lblRegion.setFont(new java.awt.Font("Century Gothic", 0, 12)); // NOI18N
        lblRegion.setText("REGIÓN");

        lblComuna.setFont(new java.awt.Font("Century Gothic", 0, 12)); // NOI18N
        lblComuna.setText("COMUNA");

        lblTelParticular.setFont(new java.awt.Font("Century Gothic", 0, 12)); // NOI18N
        lblTelParticular.setText("TEL. PARTICULAR");

        lblTelMovil.setFont(new java.awt.Font("Century Gothic", 0, 12)); // NOI18N
        lblTelMovil.setText("TEL. MOVIL");

        txtCalleAvenidaWarra.setEditable(false);
        txtCalleAvenidaWarra.setBackground(new java.awt.Color(255, 255, 102));
        txtCalleAvenidaWarra.setDisabledTextColor(new java.awt.Color(0, 0, 204));
        txtCalleAvenidaWarra.setEnabled(false);

        txtNumeroWarra.setEditable(false);
        txtNumeroWarra.setBackground(new java.awt.Color(255, 255, 102));
        txtNumeroWarra.setDisabledTextColor(new java.awt.Color(0, 0, 204));
        txtNumeroWarra.setEnabled(false);

        txtDeptoWarra.setEditable(false);
        txtDeptoWarra.setBackground(new java.awt.Color(255, 255, 102));
        txtDeptoWarra.setDisabledTextColor(new java.awt.Color(0, 0, 204));
        txtDeptoWarra.setEnabled(false);

        txtRegionWarra.setEditable(false);
        txtRegionWarra.setBackground(new java.awt.Color(255, 255, 102));
        txtRegionWarra.setDisabledTextColor(new java.awt.Color(0, 0, 204));
        txtRegionWarra.setEnabled(false);

        txtComunaWarra.setEditable(false);
        txtComunaWarra.setBackground(new java.awt.Color(255, 255, 102));
        txtComunaWarra.setDisabledTextColor(new java.awt.Color(0, 0, 204));
        txtComunaWarra.setEnabled(false);

        txtTelParticularWarra.setEditable(false);
        txtTelParticularWarra.setBackground(new java.awt.Color(255, 255, 102));
        txtTelParticularWarra.setDisabledTextColor(new java.awt.Color(0, 0, 204));
        txtTelParticularWarra.setEnabled(false);

        txtTelMovilWarra.setEditable(false);
        txtTelMovilWarra.setBackground(new java.awt.Color(255, 255, 102));
        txtTelMovilWarra.setDisabledTextColor(new java.awt.Color(0, 0, 204));
        txtTelMovilWarra.setEnabled(false);

        javax.swing.GroupLayout jPanel8Layout = new javax.swing.GroupLayout(jPanel8);
        jPanel8.setLayout(jPanel8Layout);
        jPanel8Layout.setHorizontalGroup(
            jPanel8Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(jPanel8Layout.createSequentialGroup()
                .addContainerGap()
                .addGroup(jPanel8Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                    .addComponent(lblCalleAvenida)
                    .addComponent(lblRegion)
                    .addComponent(lblComuna)
                    .addComponent(lblTelParticular)
                    .addComponent(lblTelMovil)
                    .addComponent(lblDepto))
                .addGap(18, 18, 18)
                .addGroup(jPanel8Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING, false)
                    .addComponent(txtTelParticularWarra, javax.swing.GroupLayout.Alignment.LEADING, javax.swing.GroupLayout.DEFAULT_SIZE, 123, Short.MAX_VALUE)
                    .addComponent(txtComunaWarra, javax.swing.GroupLayout.Alignment.LEADING)
                    .addComponent(txtRegionWarra, javax.swing.GroupLayout.Alignment.LEADING)
                    .addComponent(txtDeptoWarra, javax.swing.GroupLayout.Alignment.LEADING)
                    .addComponent(txtCalleAvenidaWarra, javax.swing.GroupLayout.Alignment.LEADING)
                    .addComponent(txtTelMovilWarra))
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)
                .addComponent(lblNumero)
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)
                .addComponent(txtNumeroWarra, javax.swing.GroupLayout.PREFERRED_SIZE, 65, javax.swing.GroupLayout.PREFERRED_SIZE)
                .addContainerGap(13, Short.MAX_VALUE))
        );
        jPanel8Layout.setVerticalGroup(
            jPanel8Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(jPanel8Layout.createSequentialGroup()
                .addContainerGap()
                .addGroup(jPanel8Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING)
                    .addGroup(jPanel8Layout.createSequentialGroup()
                        .addGroup(jPanel8Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                            .addComponent(lblCalleAvenida)
                            .addComponent(txtCalleAvenidaWarra, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                            .addComponent(lblNumero)
                            .addComponent(txtNumeroWarra, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))
                        .addGap(52, 52, 52))
                    .addGroup(jPanel8Layout.createSequentialGroup()
                        .addGroup(jPanel8Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                            .addComponent(txtDeptoWarra, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                            .addComponent(lblDepto))
                        .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                        .addGroup(jPanel8Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                            .addComponent(lblRegion)
                            .addComponent(txtRegionWarra))))
                .addGap(4, 4, 4)
                .addGroup(jPanel8Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                    .addComponent(lblComuna)
                    .addComponent(txtComunaWarra, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                .addGroup(jPanel8Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                    .addComponent(lblTelParticular)
                    .addComponent(txtTelParticularWarra, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                .addGroup(jPanel8Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                    .addComponent(txtTelMovilWarra, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                    .addComponent(lblTelMovil))
                .addGap(38, 38, 38))
        );

        javax.swing.GroupLayout pnlDatosPersoGaraLayout = new javax.swing.GroupLayout(pnlDatosPersoGara);
        pnlDatosPersoGara.setLayout(pnlDatosPersoGaraLayout);
        pnlDatosPersoGaraLayout.setHorizontalGroup(
            pnlDatosPersoGaraLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(pnlDatosPersoGaraLayout.createSequentialGroup()
                .addContainerGap()
                .addComponent(jPanel7, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                .addGap(18, 18, 18)
                .addComponent(jPanel8, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
                .addContainerGap())
        );
        pnlDatosPersoGaraLayout.setVerticalGroup(
            pnlDatosPersoGaraLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, pnlDatosPersoGaraLayout.createSequentialGroup()
                .addContainerGap(16, Short.MAX_VALUE)
                .addGroup(pnlDatosPersoGaraLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING, false)
                    .addComponent(jPanel7, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
                    .addComponent(jPanel8, javax.swing.GroupLayout.PREFERRED_SIZE, 193, Short.MAX_VALUE))
                .addContainerGap())
        );

        btnMenuPrincipal.setFont(new java.awt.Font("Century Gothic", 0, 12)); // NOI18N
        btnMenuPrincipal.setText("MENÚ PRINCIPAL");
        btnMenuPrincipal.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                btnMenuPrincipalActionPerformed(evt);
            }
        });

        javax.swing.GroupLayout jPanel1Layout = new javax.swing.GroupLayout(jPanel1);
        jPanel1.setLayout(jPanel1Layout);
        jPanel1Layout.setHorizontalGroup(
            jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(jPanel1Layout.createSequentialGroup()
                .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                    .addGroup(jPanel1Layout.createSequentialGroup()
                        .addContainerGap()
                        .addComponent(pnlDatosPersoGara, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))
                    .addGroup(jPanel1Layout.createSequentialGroup()
                        .addGap(299, 299, 299)
                        .addComponent(pnlIngreseRutGarante, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                        .addGap(0, 0, Short.MAX_VALUE)))
                .addContainerGap())
            .addGroup(jPanel1Layout.createSequentialGroup()
                .addContainerGap()
                .addComponent(btnMenuPrincipal, javax.swing.GroupLayout.PREFERRED_SIZE, 147, javax.swing.GroupLayout.PREFERRED_SIZE)
                .addContainerGap(javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))
        );
        jPanel1Layout.setVerticalGroup(
            jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(jPanel1Layout.createSequentialGroup()
                .addContainerGap()
                .addComponent(pnlIngreseRutGarante, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                .addGap(18, 18, 18)
                .addComponent(pnlDatosPersoGara, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)
                .addComponent(btnMenuPrincipal)
                .addContainerGap(63, Short.MAX_VALUE))
        );

        jTabbedPane1.addTab("INFO. GARANTE", jPanel1);

        pnlDescripGarantia.setBorder(javax.swing.BorderFactory.createTitledBorder(null, "DESCRIPCIÓN GARANTIA", javax.swing.border.TitledBorder.DEFAULT_JUSTIFICATION, javax.swing.border.TitledBorder.DEFAULT_POSITION, new java.awt.Font("Century Gothic", 1, 10), java.awt.Color.blue)); // NOI18N

        txtOtroComentarioWarra.setColumns(20);
        txtOtroComentarioWarra.setFont(new java.awt.Font("Century Gothic", 0, 12)); // NOI18N
        txtOtroComentarioWarra.setRows(5);
        txtOtroComentarioWarra.setText("OTRO COMENTARIO ...");
        txtOtroComentarioWarra.setToolTipText("");
        jScrollPane3.setViewportView(txtOtroComentarioWarra);

        txtDescripcionWarra.setBackground(new java.awt.Color(255, 255, 102));
        txtDescripcionWarra.setColumns(20);
        txtDescripcionWarra.setFont(new java.awt.Font("Century Gothic", 0, 12)); // NOI18N
        txtDescripcionWarra.setRows(5);
        txtDescripcionWarra.setDisabledTextColor(new java.awt.Color(0, 0, 204));
        jScrollPane4.setViewportView(txtDescripcionWarra);

        lblDescripcion.setFont(new java.awt.Font("Century Gothic", 0, 12)); // NOI18N
        lblDescripcion.setText("DESCRIPCIÓN");

        javax.swing.GroupLayout pnlDescripGarantiaLayout = new javax.swing.GroupLayout(pnlDescripGarantia);
        pnlDescripGarantia.setLayout(pnlDescripGarantiaLayout);
        pnlDescripGarantiaLayout.setHorizontalGroup(
            pnlDescripGarantiaLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(pnlDescripGarantiaLayout.createSequentialGroup()
                .addGap(70, 70, 70)
                .addComponent(lblDescripcion)
                .addGap(18, 18, 18)
                .addGroup(pnlDescripGarantiaLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                    .addComponent(jScrollPane4, javax.swing.GroupLayout.DEFAULT_SIZE, 586, Short.MAX_VALUE)
                    .addComponent(jScrollPane3))
                .addContainerGap())
        );
        pnlDescripGarantiaLayout.setVerticalGroup(
            pnlDescripGarantiaLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, pnlDescripGarantiaLayout.createSequentialGroup()
                .addContainerGap(javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
                .addGroup(pnlDescripGarantiaLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                    .addComponent(lblDescripcion)
                    .addComponent(jScrollPane4, javax.swing.GroupLayout.PREFERRED_SIZE, 89, javax.swing.GroupLayout.PREFERRED_SIZE))
                .addGap(31, 31, 31)
                .addComponent(jScrollPane3, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                .addGap(250, 250, 250))
        );

        javax.swing.GroupLayout jPanel2Layout = new javax.swing.GroupLayout(jPanel2);
        jPanel2.setLayout(jPanel2Layout);
        jPanel2Layout.setHorizontalGroup(
            jPanel2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(jPanel2Layout.createSequentialGroup()
                .addContainerGap()
                .addComponent(pnlDescripGarantia, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
                .addContainerGap())
        );
        jPanel2Layout.setVerticalGroup(
            jPanel2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(jPanel2Layout.createSequentialGroup()
                .addContainerGap()
                .addComponent(pnlDescripGarantia, javax.swing.GroupLayout.PREFERRED_SIZE, 359, javax.swing.GroupLayout.PREFERRED_SIZE)
                .addContainerGap(97, Short.MAX_VALUE))
        );

        jTabbedPane1.addTab("DESCRIP. GARANTÍA", jPanel2);

        pnlCreacionGaraWarra.setBorder(javax.swing.BorderFactory.createTitledBorder(null, "CREACIÓN GARANTÍA WARRANT", javax.swing.border.TitledBorder.DEFAULT_JUSTIFICATION, javax.swing.border.TitledBorder.DEFAULT_POSITION, new java.awt.Font("Century Gothic", 1, 10), java.awt.Color.blue)); // NOI18N

        jLabel4.setFont(new java.awt.Font("Century Gothic", 0, 12)); // NOI18N
        jLabel4.setText("SUCURSAL");

        jLabel5.setFont(new java.awt.Font("Century Gothic", 0, 12)); // NOI18N
        jLabel5.setText("TIPO PRODUCTO");

        jLabel6.setFont(new java.awt.Font("Century Gothic", 0, 12)); // NOI18N
        jLabel6.setText("FECHA CREACIÓN");

        jLabel7.setFont(new java.awt.Font("Century Gothic", 0, 12)); // NOI18N
        jLabel7.setText("FECHA ÚLT. DEBITO");

        cmbTipoProdWarra.setFont(new java.awt.Font("Century Gothic", 0, 10)); // NOI18N
        cmbTipoProdWarra.setModel(new javax.swing.DefaultComboBoxModel(new String[] { "Seleccione" }));

        cmbSucursalWarra.setFont(new java.awt.Font("Century Gothic", 0, 10)); // NOI18N
        cmbSucursalWarra.setModel(new javax.swing.DefaultComboBoxModel(new String[] { "Seleccione" }));

        jLabel15.setFont(new java.awt.Font("Century Gothic", 0, 12)); // NOI18N
        jLabel15.setText("FECHA MODIFICA.");

        jLabel14.setFont(new java.awt.Font("Century Gothic", 0, 12)); // NOI18N
        jLabel14.setText("FECHA ÚLT. TASACIÓN");

        jLabel13.setFont(new java.awt.Font("Century Gothic", 0, 12)); // NOI18N
        jLabel13.setText("MONEDA");

        cmbMonedaWarra.setFont(new java.awt.Font("Century Gothic", 0, 10)); // NOI18N
        cmbMonedaWarra.setModel(new javax.swing.DefaultComboBoxModel(new String[] { "Seleccione" }));

        jLabel17.setFont(new java.awt.Font("Century Gothic", 0, 12)); // NOI18N
        jLabel17.setText("D.U.N 14");

        txtDun14Warra.addKeyListener(new java.awt.event.KeyAdapter() {
            public void keyReleased(java.awt.event.KeyEvent evt) {
                txtDun14WarraKeyReleased(evt);
            }
        });

        txtFechaCreacion.setEditable(false);
        txtFechaCreacion.setBackground(new java.awt.Color(255, 255, 0));

        javax.swing.GroupLayout jPanel4Layout = new javax.swing.GroupLayout(jPanel4);
        jPanel4.setLayout(jPanel4Layout);
        jPanel4Layout.setHorizontalGroup(
            jPanel4Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(jPanel4Layout.createSequentialGroup()
                .addContainerGap()
                .addGroup(jPanel4Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                    .addComponent(jLabel14)
                    .addComponent(jLabel15)
                    .addComponent(jLabel13)
                    .addComponent(jLabel7)
                    .addComponent(jLabel6)
                    .addComponent(jLabel5)
                    .addComponent(jLabel4)
                    .addComponent(jLabel17))
                .addGap(18, 18, 18)
                .addGroup(jPanel4Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING, false)
                    .addComponent(jcFechUltDebitoWarra, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
                    .addComponent(cmbMonedaWarra, 0, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
                    .addComponent(txtDun14Warra, javax.swing.GroupLayout.Alignment.TRAILING)
                    .addComponent(jcFechUltTasaWarra, javax.swing.GroupLayout.Alignment.TRAILING, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
                    .addComponent(jcFechModiWarra, javax.swing.GroupLayout.Alignment.TRAILING, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
                    .addComponent(cmbTipoProdWarra, 0, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
                    .addComponent(cmbSucursalWarra, 0, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
                    .addComponent(txtFechaCreacion))
                .addContainerGap(javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))
        );
        jPanel4Layout.setVerticalGroup(
            jPanel4Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(jPanel4Layout.createSequentialGroup()
                .addContainerGap()
                .addGroup(jPanel4Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                    .addComponent(jLabel4)
                    .addComponent(cmbSucursalWarra, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                .addGroup(jPanel4Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                    .addComponent(jLabel5)
                    .addComponent(cmbTipoProdWarra, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                .addGroup(jPanel4Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                    .addGroup(jPanel4Layout.createSequentialGroup()
                        .addComponent(jLabel6)
                        .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                        .addComponent(jLabel7))
                    .addGroup(jPanel4Layout.createSequentialGroup()
                        .addComponent(txtFechaCreacion, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                        .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                        .addComponent(jcFechUltDebitoWarra, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)))
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                .addGroup(jPanel4Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                    .addGroup(jPanel4Layout.createSequentialGroup()
                        .addComponent(cmbMonedaWarra, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                        .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                        .addComponent(jcFechUltTasaWarra, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))
                    .addGroup(jPanel4Layout.createSequentialGroup()
                        .addComponent(jLabel13)
                        .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                        .addComponent(jLabel14)))
                .addGap(7, 7, 7)
                .addGroup(jPanel4Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                    .addComponent(jLabel15)
                    .addComponent(jcFechModiWarra, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))
                .addGroup(jPanel4Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                    .addGroup(jPanel4Layout.createSequentialGroup()
                        .addGap(5, 5, 5)
                        .addComponent(txtDun14Warra, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))
                    .addGroup(jPanel4Layout.createSequentialGroup()
                        .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                        .addComponent(jLabel17)))
                .addContainerGap(javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))
        );

        jLabel8.setFont(new java.awt.Font("Century Gothic", 0, 12)); // NOI18N
        jLabel8.setText("TIPO GARANTÍA");

        jLabel9.setFont(new java.awt.Font("Century Gothic", 0, 12)); // NOI18N
        jLabel9.setText("INGRESE PRODUCTO");

        jLabel10.setFont(new java.awt.Font("Century Gothic", 0, 12)); // NOI18N
        jLabel10.setText("FECHA EXTINCIÓN");

        jLabel11.setFont(new java.awt.Font("Century Gothic", 0, 12)); // NOI18N
        jLabel11.setText("FECHA ÚLT. REVALUO");

        jLabel12.setFont(new java.awt.Font("Century Gothic", 0, 12)); // NOI18N
        jLabel12.setText("FECHA ÚLT. CRÉDITO");

        cmbTipoGtiaWarra.setFont(new java.awt.Font("Century Gothic", 0, 10)); // NOI18N
        cmbTipoGtiaWarra.setModel(new javax.swing.DefaultComboBoxModel(new String[] { "Seleccione" }));

        txtProdWarra.addKeyListener(new java.awt.event.KeyAdapter() {
            public void keyReleased(java.awt.event.KeyEvent evt) {
                txtProdWarraKeyReleased(evt);
            }
        });

        javax.swing.GroupLayout jPanel5Layout = new javax.swing.GroupLayout(jPanel5);
        jPanel5.setLayout(jPanel5Layout);
        jPanel5Layout.setHorizontalGroup(
            jPanel5Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(jPanel5Layout.createSequentialGroup()
                .addContainerGap()
                .addGroup(jPanel5Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                    .addComponent(jLabel8)
                    .addComponent(jLabel9)
                    .addGroup(jPanel5Layout.createSequentialGroup()
                        .addGroup(jPanel5Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                            .addComponent(jLabel11)
                            .addComponent(jLabel10)
                            .addComponent(jLabel12))
                        .addGap(18, 18, 18)
                        .addGroup(jPanel5Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING, false)
                            .addComponent(txtProdWarra)
                            .addComponent(jcFechExtWarra, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
                            .addComponent(jcFechUltRevWarra, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
                            .addComponent(jcFechUltCredWarra, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
                            .addComponent(cmbTipoGtiaWarra, 0, 146, Short.MAX_VALUE))))
                .addContainerGap(javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))
        );
        jPanel5Layout.setVerticalGroup(
            jPanel5Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(jPanel5Layout.createSequentialGroup()
                .addContainerGap()
                .addGroup(jPanel5Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                    .addComponent(jLabel8)
                    .addComponent(cmbTipoGtiaWarra, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                .addGroup(jPanel5Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                    .addComponent(jLabel9)
                    .addComponent(txtProdWarra, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                .addGroup(jPanel5Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                    .addGroup(jPanel5Layout.createSequentialGroup()
                        .addComponent(jcFechExtWarra, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                        .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                        .addComponent(jcFechUltRevWarra, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))
                    .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, jPanel5Layout.createSequentialGroup()
                        .addComponent(jLabel10)
                        .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                        .addComponent(jLabel11)))
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
                .addGroup(jPanel5Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING)
                    .addComponent(jLabel12)
                    .addComponent(jcFechUltCredWarra, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))
                .addContainerGap(javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))
        );

        jPanel9.setBorder(javax.swing.BorderFactory.createTitledBorder(null, "ADJUNTAR ARCHIVO", javax.swing.border.TitledBorder.DEFAULT_JUSTIFICATION, javax.swing.border.TitledBorder.DEFAULT_POSITION, new java.awt.Font("Century Gothic", 1, 10), java.awt.Color.blue)); // NOI18N

        jLabel16.setFont(new java.awt.Font("Century Gothic", 0, 12)); // NOI18N
        jLabel16.setText("ARCHIVO");

        txtArchivoAdWarra.setEditable(false);

        btnExaminarWarra.setFont(new java.awt.Font("Century Gothic", 0, 12)); // NOI18N
        btnExaminarWarra.setText("EXAMINAR");
        btnExaminarWarra.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                btnExaminarWarraActionPerformed(evt);
            }
        });

        btnAdjuntarWarra.setFont(new java.awt.Font("Century Gothic", 0, 12)); // NOI18N
        btnAdjuntarWarra.setText("ADJUNTAR");
        btnAdjuntarWarra.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                btnAdjuntarWarraActionPerformed(evt);
            }
        });

        javax.swing.GroupLayout jPanel9Layout = new javax.swing.GroupLayout(jPanel9);
        jPanel9.setLayout(jPanel9Layout);
        jPanel9Layout.setHorizontalGroup(
            jPanel9Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(jPanel9Layout.createSequentialGroup()
                .addContainerGap()
                .addComponent(jLabel16)
                .addGap(18, 18, 18)
                .addGroup(jPanel9Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                    .addGroup(jPanel9Layout.createSequentialGroup()
                        .addComponent(btnExaminarWarra)
                        .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                        .addComponent(btnAdjuntarWarra))
                    .addComponent(txtArchivoAdWarra, javax.swing.GroupLayout.PREFERRED_SIZE, 200, javax.swing.GroupLayout.PREFERRED_SIZE))
                .addContainerGap(javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))
        );
        jPanel9Layout.setVerticalGroup(
            jPanel9Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, jPanel9Layout.createSequentialGroup()
                .addContainerGap(javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
                .addGroup(jPanel9Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                    .addComponent(jLabel16)
                    .addComponent(txtArchivoAdWarra, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                .addGroup(jPanel9Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                    .addComponent(btnExaminarWarra)
                    .addComponent(btnAdjuntarWarra))
                .addContainerGap())
        );

        jPanel11.setBorder(javax.swing.BorderFactory.createTitledBorder(null, "GARANTÍA", javax.swing.border.TitledBorder.DEFAULT_JUSTIFICATION, javax.swing.border.TitledBorder.DEFAULT_POSITION, new java.awt.Font("Century Gothic", 1, 10), java.awt.Color.blue)); // NOI18N

        lblArchivo1.setFont(new java.awt.Font("Century Gothic", 0, 12)); // NOI18N
        lblArchivo1.setText("MONTO INICIAL");

        txtMontoInicial.setBackground(new java.awt.Color(255, 255, 102));
        txtMontoInicial.setFont(new java.awt.Font("Century Gothic", 0, 12)); // NOI18N
        txtMontoInicial.setDisabledTextColor(new java.awt.Color(0, 0, 204));
        txtMontoInicial.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                txtMontoInicialActionPerformed(evt);
            }
        });

        javax.swing.GroupLayout jPanel11Layout = new javax.swing.GroupLayout(jPanel11);
        jPanel11.setLayout(jPanel11Layout);
        jPanel11Layout.setHorizontalGroup(
            jPanel11Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(jPanel11Layout.createSequentialGroup()
                .addContainerGap()
                .addComponent(lblArchivo1, javax.swing.GroupLayout.PREFERRED_SIZE, 101, javax.swing.GroupLayout.PREFERRED_SIZE)
                .addGap(34, 34, 34)
                .addComponent(txtMontoInicial, javax.swing.GroupLayout.PREFERRED_SIZE, 144, javax.swing.GroupLayout.PREFERRED_SIZE)
                .addContainerGap(javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))
        );
        jPanel11Layout.setVerticalGroup(
            jPanel11Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, jPanel11Layout.createSequentialGroup()
                .addContainerGap(javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
                .addGroup(jPanel11Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                    .addComponent(lblArchivo1)
                    .addComponent(txtMontoInicial, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))
                .addGap(42, 42, 42))
        );

        javax.swing.GroupLayout pnlCreacionGaraWarraLayout = new javax.swing.GroupLayout(pnlCreacionGaraWarra);
        pnlCreacionGaraWarra.setLayout(pnlCreacionGaraWarraLayout);
        pnlCreacionGaraWarraLayout.setHorizontalGroup(
            pnlCreacionGaraWarraLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, pnlCreacionGaraWarraLayout.createSequentialGroup()
                .addContainerGap()
                .addComponent(jPanel4, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED, 180, Short.MAX_VALUE)
                .addGroup(pnlCreacionGaraWarraLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                    .addComponent(jPanel11, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                    .addGroup(pnlCreacionGaraWarraLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING, false)
                        .addComponent(jPanel5, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
                        .addComponent(jPanel9, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)))
                .addContainerGap())
        );
        pnlCreacionGaraWarraLayout.setVerticalGroup(
            pnlCreacionGaraWarraLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(pnlCreacionGaraWarraLayout.createSequentialGroup()
                .addContainerGap()
                .addGroup(pnlCreacionGaraWarraLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                    .addGroup(pnlCreacionGaraWarraLayout.createSequentialGroup()
                        .addComponent(jPanel5, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                        .addGap(7, 7, 7)
                        .addComponent(jPanel9, javax.swing.GroupLayout.PREFERRED_SIZE, 84, javax.swing.GroupLayout.PREFERRED_SIZE)
                        .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
                        .addComponent(jPanel11, javax.swing.GroupLayout.PREFERRED_SIZE, 57, javax.swing.GroupLayout.PREFERRED_SIZE))
                    .addGroup(pnlCreacionGaraWarraLayout.createSequentialGroup()
                        .addComponent(jPanel4, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                        .addGap(0, 0, Short.MAX_VALUE)))
                .addContainerGap())
        );

        btnMenuPrincipalWarra.setFont(new java.awt.Font("Century Gothic", 0, 12)); // NOI18N
        btnMenuPrincipalWarra.setText("MÉNU PRINCIPAL >>");
        btnMenuPrincipalWarra.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                btnMenuPrincipalWarraActionPerformed(evt);
            }
        });

        btnGrabarWarra.setFont(new java.awt.Font("Century Gothic", 0, 12)); // NOI18N
        btnGrabarWarra.setText("GRABAR");
        btnGrabarWarra.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                btnGrabarWarraActionPerformed(evt);
            }
        });

        btnExportaWarra.setFont(new java.awt.Font("Century Gothic", 0, 12)); // NOI18N
        btnExportaWarra.setText("EXPORTAR");
        btnExportaWarra.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                btnExportaWarraActionPerformed(evt);
            }
        });

        javax.swing.GroupLayout jPanel3Layout = new javax.swing.GroupLayout(jPanel3);
        jPanel3.setLayout(jPanel3Layout);
        jPanel3Layout.setHorizontalGroup(
            jPanel3Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(jPanel3Layout.createSequentialGroup()
                .addContainerGap()
                .addGroup(jPanel3Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                    .addComponent(pnlCreacionGaraWarra, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
                    .addGroup(jPanel3Layout.createSequentialGroup()
                        .addComponent(btnExportaWarra, javax.swing.GroupLayout.PREFERRED_SIZE, 95, javax.swing.GroupLayout.PREFERRED_SIZE)
                        .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
                        .addComponent(btnGrabarWarra)
                        .addGap(184, 184, 184)
                        .addComponent(btnMenuPrincipalWarra, javax.swing.GroupLayout.PREFERRED_SIZE, 165, javax.swing.GroupLayout.PREFERRED_SIZE)))
                .addContainerGap())
        );
        jPanel3Layout.setVerticalGroup(
            jPanel3Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(jPanel3Layout.createSequentialGroup()
                .addContainerGap()
                .addComponent(pnlCreacionGaraWarra, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                .addGap(20, 20, 20)
                .addGroup(jPanel3Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                    .addComponent(btnMenuPrincipalWarra)
                    .addComponent(btnExportaWarra)
                    .addComponent(btnGrabarWarra))
                .addContainerGap(66, Short.MAX_VALUE))
        );

        jTabbedPane1.addTab("INGRESO GARANTÍA WARRANT", jPanel3);

        jPanel10.setBorder(javax.swing.BorderFactory.createTitledBorder(null, "ÁREA IMPRESIÓN", javax.swing.border.TitledBorder.DEFAULT_JUSTIFICATION, javax.swing.border.TitledBorder.DEFAULT_POSITION, new java.awt.Font("Century Gothic", 1, 10), java.awt.Color.blue)); // NOI18N

        tbSalidaImpresionWarrant.setModel(new javax.swing.table.DefaultTableModel(
            new Object [][] {

            },
            new String [] {

            }
        ));
        tbSalidaImpresionWarrant.setEnabled(false);
        jScrollPane1.setViewportView(tbSalidaImpresionWarrant);

        javax.swing.GroupLayout jPanel10Layout = new javax.swing.GroupLayout(jPanel10);
        jPanel10.setLayout(jPanel10Layout);
        jPanel10Layout.setHorizontalGroup(
            jPanel10Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(jPanel10Layout.createSequentialGroup()
                .addContainerGap()
                .addComponent(jScrollPane1, javax.swing.GroupLayout.DEFAULT_SIZE, 743, Short.MAX_VALUE)
                .addContainerGap())
        );
        jPanel10Layout.setVerticalGroup(
            jPanel10Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(jPanel10Layout.createSequentialGroup()
                .addContainerGap()
                .addComponent(jScrollPane1, javax.swing.GroupLayout.DEFAULT_SIZE, 249, Short.MAX_VALUE)
                .addContainerGap())
        );

        btnImprimirIngresoGarantiaWarrant.setText("IMPRIMIR");
        btnImprimirIngresoGarantiaWarrant.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                btnImprimirIngresoGarantiaWarrantActionPerformed(evt);
            }
        });

        btnMenuPrincipalWarrant.setText("MENÚ PRINCIPAL");
        btnMenuPrincipalWarrant.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                btnMenuPrincipalWarrantActionPerformed(evt);
            }
        });

        jPanel12.setBorder(javax.swing.BorderFactory.createTitledBorder(null, "INGRESE D.U.N. 14", javax.swing.border.TitledBorder.DEFAULT_JUSTIFICATION, javax.swing.border.TitledBorder.DEFAULT_POSITION, new java.awt.Font("Century Gothic", 1, 10), java.awt.Color.blue)); // NOI18N

        btnBuscarIngresoGarantiaWarrant.setText("BUSCAR");
        btnBuscarIngresoGarantiaWarrant.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                btnBuscarIngresoGarantiaWarrantActionPerformed(evt);
            }
        });

        javax.swing.GroupLayout jPanel12Layout = new javax.swing.GroupLayout(jPanel12);
        jPanel12.setLayout(jPanel12Layout);
        jPanel12Layout.setHorizontalGroup(
            jPanel12Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(jPanel12Layout.createSequentialGroup()
                .addGap(31, 31, 31)
                .addGroup(jPanel12Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING, false)
                    .addComponent(btnBuscarIngresoGarantiaWarrant, javax.swing.GroupLayout.DEFAULT_SIZE, 132, Short.MAX_VALUE)
                    .addComponent(txtBuscarDun14))
                .addContainerGap(35, Short.MAX_VALUE))
        );
        jPanel12Layout.setVerticalGroup(
            jPanel12Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(jPanel12Layout.createSequentialGroup()
                .addContainerGap()
                .addComponent(txtBuscarDun14, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)
                .addComponent(btnBuscarIngresoGarantiaWarrant)
                .addContainerGap(javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))
        );

        javax.swing.GroupLayout jPanel6Layout = new javax.swing.GroupLayout(jPanel6);
        jPanel6.setLayout(jPanel6Layout);
        jPanel6Layout.setHorizontalGroup(
            jPanel6Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(jPanel6Layout.createSequentialGroup()
                .addContainerGap()
                .addGroup(jPanel6Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                    .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, jPanel6Layout.createSequentialGroup()
                        .addGap(0, 0, Short.MAX_VALUE)
                        .addComponent(btnImprimirIngresoGarantiaWarrant, javax.swing.GroupLayout.PREFERRED_SIZE, 112, javax.swing.GroupLayout.PREFERRED_SIZE)
                        .addGap(151, 151, 151)
                        .addComponent(btnMenuPrincipalWarrant, javax.swing.GroupLayout.PREFERRED_SIZE, 142, javax.swing.GroupLayout.PREFERRED_SIZE)
                        .addGap(20, 20, 20))
                    .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, jPanel6Layout.createSequentialGroup()
                        .addComponent(jPanel10, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
                        .addContainerGap())))
            .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, jPanel6Layout.createSequentialGroup()
                .addContainerGap(javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
                .addComponent(jPanel12, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                .addGap(283, 283, 283))
        );
        jPanel6Layout.setVerticalGroup(
            jPanel6Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(jPanel6Layout.createSequentialGroup()
                .addContainerGap()
                .addComponent(jPanel12, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                .addGap(18, 18, 18)
                .addComponent(jPanel10, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)
                .addGroup(jPanel6Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                    .addComponent(btnImprimirIngresoGarantiaWarrant)
                    .addComponent(btnMenuPrincipalWarrant))
                .addContainerGap())
        );

        jTabbedPane1.addTab("IMPRIMIR", jPanel6);

        jLabel3.setText("MENÚ PRINCIPAL\\INGRESO GARANTÍA WARRANT");

        javax.swing.GroupLayout layout = new javax.swing.GroupLayout(getContentPane());
        getContentPane().setLayout(layout);
        layout.setHorizontalGroup(
            layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(layout.createSequentialGroup()
                .addContainerGap()
                .addComponent(jLabel2)
                .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                    .addGroup(layout.createSequentialGroup()
                        .addGap(118, 118, 118)
                        .addComponent(jLabel1))
                    .addGroup(layout.createSequentialGroup()
                        .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                        .addComponent(jLabel3)))
                .addContainerGap(javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))
            .addComponent(jTabbedPane1)
        );
        layout.setVerticalGroup(
            layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(layout.createSequentialGroup()
                .addContainerGap()
                .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                    .addComponent(jLabel1)
                    .addComponent(jLabel2)
                    .addComponent(jLabel3, javax.swing.GroupLayout.Alignment.TRAILING))
                .addGap(18, 18, 18)
                .addComponent(jTabbedPane1))
        );

        setSize(new java.awt.Dimension(816, 638));
        setLocationRelativeTo(null);
    }// </editor-fold>//GEN-END:initComponents

    private void btnBuscarWarraActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_btnBuscarWarraActionPerformed
        try {
            if(ValidarRutDAO.validarRut(this.txtRutBuscarWarra.getText().toUpperCase()))
           {
          javax.swing.JOptionPane.showMessageDialog(this, "Rut valido");
        String buscarPorRut = txtRutBuscarWarra.getText().toString().trim();
        if(txtRutBuscarWarra.getText().length()>0){           
        garanteDTO garante = reg.buscarPorRut(this.txtRutBuscarWarra.getText().trim());
        if (reg.validar_rut(buscarPorRut) == true){
        this.txtRutGaraWarra.setText(garante.getRut_gara());
        this.txtApellidoPaternoWarra.setText(garante.getApell_paterno_gara());
        this.txtApellidoMaternoWarra.setText(garante.getApell_materno_gara());
        this.txtNombreWarra.setText(garante.getNombre_gara());
        this.txtFechNacWarra.setText(garante.getFecha_nac_gara());
        this.txtSexoWarra.setText(garante.getSexo_gara());
        this.txtCalleAvenidaWarra.setText(garante.getCalle_gara());
        this.txtNumeroWarra.setText(String.valueOf(garante.getNum_gara()));
        this.txtDeptoWarra.setText(garante.getDepto_gara());
        this.txtRegionWarra.setText(garante.getReg_gara());
        this.txtComunaWarra.setText(garante.getComu_gara());
        this.txtTelParticularWarra.setText(String.valueOf(garante.getTel_part_gara()));
        this.txtTelMovilWarra.setText(String.valueOf(garante.getTel_mov_gara()));
        
//        cargarTxtArea();
             }
         else
        { 
         javax.swing.JOptionPane.showMessageDialog(this, "Rut Gatarantía Warrant No Existente");
        
        this.txtRutGaraWarra.setText(null);
        this.txtApellidoPaternoWarra.setText(null);
        this.txtApellidoMaternoWarra.setText(null);
        this.txtNombreWarra.setText(null);
        this.txtFechNacWarra.setText(null);
        this.txtSexoWarra.setText(null);
        this.txtCalleAvenidaWarra.setText(null);
        this.txtNumeroWarra.setText(null);
        this.txtDeptoWarra.setText(null);
        this.txtRegionWarra.setText(null);
        this.txtComunaWarra.setText(null);
        this.txtTelParticularWarra.setText(null);
        this.txtTelMovilWarra.setText(null);
        this.txtDescripcionWarra.setText(null);
        }
        }
        else
        {
            javax.swing.JOptionPane.showMessageDialog(this, "Ingrese Rut");
        }
             
        }
            else
            {
                javax.swing.JOptionPane.showMessageDialog(this, "Rut invalido");
            }}catch (Exception e) {
            e.getMessage();
            javax.swing.JOptionPane.showMessageDialog(this, "Rut No Existente");
        }
    }//GEN-LAST:event_btnBuscarWarraActionPerformed

    private void btnMenuPrincipalActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_btnMenuPrincipalActionPerformed
        MenuPrincipal venMenuPrincipal = new MenuPrincipal(user);
        venMenuPrincipal.setVisible(true);
        IngresoGarantiaWarrant.this.dispose();
    }//GEN-LAST:event_btnMenuPrincipalActionPerformed

    private void btnMenuPrincipalWarraActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_btnMenuPrincipalWarraActionPerformed
        MenuPrincipal venMenuPrincipal = new MenuPrincipal(user);
        venMenuPrincipal.setVisible(true);
        IngresoGarantiaWarrant.this.dispose();
    }//GEN-LAST:event_btnMenuPrincipalWarraActionPerformed

    private void btnGrabarWarraActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_btnGrabarWarraActionPerformed
        garantiaWarrantsDTO garaWarra = new garantiaWarrantsDTO();
        String dun = txtDun14Warra.getText().trim();
        if(txtRutBuscarWarra.getText().length()>0){
            if(reg.validar_dun(dun) != true){
        if (this.txtDun14Warra.getText().length() == 0)
        {
            javax.swing.JOptionPane.showMessageDialog(this , "Ingrese DUN14");
        }
        else if (this.cmbSucursalWarra.getSelectedIndex() == 0)
        {
            javax.swing.JOptionPane.showMessageDialog(this, "Ingrese Sucursal Warrant");
        }
        else if (this.cmbTipoGtiaWarra.getSelectedIndex() == 0)
        {
            javax.swing.JOptionPane.showMessageDialog(this, "Ingrese Tipo Garantia Warrant");
        }
        else if (this.cmbMonedaWarra.getSelectedIndex() == 0)
        {
            javax.swing.JOptionPane.showMessageDialog(this, "Ingrese Tipo de Moneda Warrant");
        }
        else if (this.cmbTipoProdWarra.getSelectedIndex() == 0)
        {
            javax.swing.JOptionPane.showMessageDialog(this, "Ingrese Producto Warrant");
        }else if (this.txtMontoInicial.getText().length() == 0) // validamos campos vacios
        {
            javax.swing.JOptionPane.showMessageDialog(this, "Ingrese Monto");
        }
        // Validacion Calendarios
        else if(this.txtFechaCreacion.getText().length() == 0) // valida fecha vacia
        {
            javax.swing.JOptionPane.showMessageDialog(this, "Ingrese una Fecha de Creacion");
        }
         else if (this.jcFechExtWarra.getDate() == null) // valida fecha vacia
        {
            javax.swing.JOptionPane.showMessageDialog(this, "Ingrese una Fecha de Extincion");
        }
         else if (this.jcFechModiWarra.getDate() == null) // valida fecha vacia
        {
            javax.swing.JOptionPane.showMessageDialog(this, "Ingrese una Fecha de Modificacion");
        }
         else if (this.jcFechUltDebitoWarra.getDate() == null) // valida fecha vacia
        {
            javax.swing.JOptionPane.showMessageDialog(this, "Ingrese una Fecha de Ultimo Debito");
        }
         else if (this.jcFechUltRevWarra.getDate() == null) // valida fecha vacia
        {
            javax.swing.JOptionPane.showMessageDialog(this, "Ingrese una Fecha de Ultimo Reevaluo");
        }
         else if (this.jcFechUltCredWarra.getDate() == null) // valida fecha vacia
        {
            javax.swing.JOptionPane.showMessageDialog(this, "Ingrese una Fecha de Ultima Creacion");
        }
         else if (this.jcFechUltTasaWarra.getDate() == null) // valida fecha vacia
        {
            javax.swing.JOptionPane.showMessageDialog(this, "Ingrese una Fecha de Ultima Tasacion");
        }
         else {
             
            garaWarra.setRut_garante_warra(this.txtRutGaraWarra.getText().trim());
            garaWarra.setApell_paterno_warra(this.txtApellidoPaternoWarra.getText().trim());
            garaWarra.setApell_materno_warra(this.txtApellidoMaternoWarra.getText().trim());
            garaWarra.setNombre_warra(this.txtNombreWarra.getText().trim());
            garaWarra.setFech_nac_warra(this.txtFechNacWarra.getText());
            garaWarra.setSexo_warra(this.txtSexoWarra.getText().trim());
            garaWarra.setCalle_warra(this.txtCalleAvenidaWarra.getText().trim());
            garaWarra.setNum_warra(Integer.parseInt(this.txtNumeroWarra.getText().trim()));
            garaWarra.setDepto_warra(this.txtDeptoWarra.getText().trim());
            garaWarra.setReg_warra(this.txtRegionWarra.getText().trim());
            garaWarra.setComu_warra(this.txtComunaWarra.getText().trim());
            garaWarra.setTel_part_warra(Integer.parseInt(this.txtTelParticularWarra.getText().trim()));
            garaWarra.setTel_mov_warra(Integer.parseInt(this.txtTelMovilWarra.getText().trim()));
            garaWarra.setNom_sucursal_warra(this.cmbSucursalWarra.getSelectedItem().toString());
            garaWarra.setTipo_prod_warra(this.cmbTipoProdWarra.getSelectedItem().toString());
            Date fechaCreacion;
            try {
                fechaCreacion = (new SimpleDateFormat("dd/MM/yyyy").parse(txtFechaCreacion.getText()));
                garaWarra.setFech_crea_warra(fechaCreacion);
            } catch (ParseException ex) {
                Logger.getLogger(IngresoGarantiaWarrant.class.getName()).log(Level.SEVERE, null, ex);
            }
            
            garaWarra.setFech_ult_deb_warra(new SimpleDateFormat("dd/MM/yyyy").format(this.jcFechUltDebitoWarra.getDate()));
            garaWarra.setNom_moneda_warra(this.cmbMonedaWarra.getSelectedItem().toString());
            garaWarra.setFech_ult_tasa_warra(new SimpleDateFormat("dd/MM/yyyy").format(this.jcFechUltTasaWarra.getDate()));
            garaWarra.setFech_modifi_warra(new SimpleDateFormat("dd/MM/yyyy").format(this.jcFechModiWarra.getDate()));
            garaWarra.setTipo_gara_warra(this.cmbTipoGtiaWarra.getSelectedItem().toString());
            garaWarra.setIngre_prod_warra(this.txtProdWarra.getText().trim());
            garaWarra.setFech_exti_warra(new Date(this.jcFechExtWarra.getDate().getTime()));
            garaWarra.setFech_ult_reval_warra(new SimpleDateFormat("dd/MM/yyyy").format(this.jcFechUltRevWarra.getDate()));
            garaWarra.setFech_ult_cred_warra(new SimpleDateFormat("dd/MM/yyyy").format(this.jcFechUltCredWarra.getDate()));
            garaWarra.setNom_garantia_warra("Warrant");
            garaWarra.setDescrip_warra(this.txtDescripcionWarra.getText().trim());
            garaWarra.setComent_warra(this.txtOtroComentarioWarra.getText().trim());
            garaWarra.setAdjuntar_warra(this.txtArchivoAdWarra.getText().trim());
            garaWarra.setDun_warra(this.txtDun14Warra.getText().trim());

            garaWarra.setMonto_inicial(Integer.parseInt(this.txtMontoInicial.getText().trim()));
            
            reg.creacionGarantiaWarrants(garaWarra, user);

            javax.swing.JOptionPane.showMessageDialog(this, "Garantia Warrant almacenada con Exito");
        }
         }
            else
            {
                javax.swing.JOptionPane.showMessageDialog(this, "Número warrant ya existe");
            }}
     else
     {
         javax.swing.JOptionPane.showMessageDialog(this, "Ingrese Rut en Info Garante");
     }
        limpiar();
    }//GEN-LAST:event_btnGrabarWarraActionPerformed

    private void txtProdWarraKeyReleased(java.awt.event.KeyEvent evt) {//GEN-FIRST:event_txtProdWarraKeyReleased
        if (!this.txtProdWarra.getText().matches("[ A-Za-z Ññáéíóú]*")) // expresiones regulares para validar
        {
            javax.swing.JOptionPane.showMessageDialog(this, "Ingrese solo letras");
            this.txtProdWarra.setText("");
        }
    }//GEN-LAST:event_txtProdWarraKeyReleased

    private void txtDun14WarraKeyReleased(java.awt.event.KeyEvent evt) {//GEN-FIRST:event_txtDun14WarraKeyReleased
        // TODO add your handling code here:
    }//GEN-LAST:event_txtDun14WarraKeyReleased

    private void btnExaminarWarraActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_btnExaminarWarraActionPerformed
         JFileChooser filechooser = new JFileChooser();
        int opcion = filechooser.showOpenDialog(this);
        if (opcion==JFileChooser.APPROVE_OPTION){
            txtArchivoAdWarra.setText(filechooser.getSelectedFile().getPath());
    }//GEN-LAST:event_btnExaminarWarraActionPerformed
    }
        private void btnExportaWarraActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_btnExportaWarraActionPerformed
        String rut=this.txtRutBuscarWarra.getText().trim();
        reg.exportarGarantiaWarra(rut);
        javax.swing.JOptionPane.showMessageDialog(this,"Exportacion Realizada Con Exito");
        File file=new File("C:/export_garantia_warrant.csv");
        try{
            Desktop.getDesktop().open(file);
        }catch(IOException ex){
            Logger.getLogger(IngresoGarantiaWarrant.class.getName()).log(Level.SEVERE,null,ex);
        }
    }//GEN-LAST:event_btnExportaWarraActionPerformed

    private void txtMontoInicialActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_txtMontoInicialActionPerformed
         if (!this.txtMontoInicial.getText().matches("[ 0-9]*")) // expresiones regulares para validar
        {
            javax.swing.JOptionPane.showMessageDialog(this, "Ingrese solo números");
            this.txtMontoInicial.setText("");
        }
    }//GEN-LAST:event_txtMontoInicialActionPerformed

    private void btnAdjuntarWarraActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_btnAdjuntarWarraActionPerformed
        if(!this.txtArchivoAdWarra.getText().equals("")){
        garantiaWarrantsDTO garaWarra = new garantiaWarrantsDTO();
        garaWarra.setAdjuntar_warra(this.txtArchivoAdWarra.getText().trim());
        javax.swing.JOptionPane.showMessageDialog(this, "Archivo guardado");
        }else{
        javax.swing.JOptionPane.showMessageDialog(this, "Adjunte archivo");
        }
    }//GEN-LAST:event_btnAdjuntarWarraActionPerformed

    private void btnMenuPrincipalWarrantActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_btnMenuPrincipalWarrantActionPerformed
       MenuPrincipal venMenuPrincipal = new MenuPrincipal(user);
        venMenuPrincipal.setVisible(true);
        IngresoGarantiaWarrant.this.dispose();
    }//GEN-LAST:event_btnMenuPrincipalWarrantActionPerformed

    private void btnImprimirIngresoGarantiaWarrantActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_btnImprimirIngresoGarantiaWarrantActionPerformed
        try {
            
        int fila= 0;
  
        List Resultados = new ArrayList();
        ComprobanteGeneralDTO tipo;
        Resultados.clear();
        
        for(fila = 0; fila< tbSalidaImpresionWarrant.getRowCount(); fila++)
        {
            
           tipo = new ComprobanteGeneralDTO(String.valueOf(tbSalidaImpresionWarrant.getValueAt(fila, 0)),
                    " " + String.valueOf(tbSalidaImpresionWarrant.getValueAt(fila, 1)), " " + String.valueOf(tbSalidaImpresionWarrant.getValueAt(fila, 2))  + "\n");
           Resultados.add(tipo);

        }
        
            String reportSource = "C:\\Users\\SoftGroup\\Documents\\NetBeansProjects\\trunk\\AppGarantias\\build\\classes\\Reporte\\ComprobanteGeneralGarantias.jrxml";

            JasperReport jr = JasperCompileManager.compileReport(reportSource);
            
            
            JFrame reporte = new JFrame();
            reporte.setSize(900, 700);
            reporte.setLocationRelativeTo(null);
            reporte.setTitle("IMPRESIÓN");
            String fechaImpresion = String.valueOf(Fechas.FechaSistema());
            
            Map<String, Object> map = new HashMap<String, Object>();
            
            map.put("Titulo", "Sistema Gestión de Garantías Bancarias");
            map.put("fecha", fechaImpresion);
            map.put("nombreBanco", "Banco xxxxxx");
            map.put("subtitulo", "Comprobante Ingreso Warrant");
            map.put("timbre", "Timbre");
            map.put("fechaUsuario","Fecha");
            map.put("firma","Firma");

            
            
            JRBeanCollectionDataSource coleccion = new JRBeanCollectionDataSource(Resultados);
            JasperPrint jp = JasperFillManager.fillReport(jr, map, coleccion);
            JRViewer jv = new JRViewer(jp);
            reporte.getContentPane().add(jv);
            reporte.setVisible(true);
            
            
            
        } catch (JRException e) {
            e.printStackTrace();
            Logger.getLogger(IngresoGarantiaWarrant.class.getName()).log(Level.SEVERE, null, e);
        }
    }//GEN-LAST:event_btnImprimirIngresoGarantiaWarrantActionPerformed

    private void btnBuscarIngresoGarantiaWarrantActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_btnBuscarIngresoGarantiaWarrantActionPerformed
        try{
            ArrayList<garantiaWarrantsDTO> salida = reg.ListarPorDunWarra(this.txtBuscarDun14.getText().trim());
            if(salida.isEmpty())
            {
               
                this.txtBuscarDun14.setText(null);
                DefaultTableModel model = (DefaultTableModel)tbSalidaImpresionWarrant.getModel();
                model.setNumRows(0);
                javax.swing.JOptionPane.showMessageDialog(this, "No hay garantias registradas!");
            }
            else
            {
               
                DefaultTableModel model = (DefaultTableModel)tbSalidaImpresionWarrant.getModel();
                model.setColumnCount(0);
                
                if(model.getColumnCount() < 1)
                {
                   
                    Object[] arr1 ={"Rut: ","Nombre: ", "Dirección: ", "Garantía: ", "Número identificatorio Warrant: ",
                        "Número de folio: ", "Monto incial: ", "Creación de la garantía: ", "Sucursal: ",
                        "Tipo producto: ","Fecha último debito: ", "Moneda: ","Fecha última Tasación: ",
                        "Tipo garantía: ","Ingreso de Producto: ","Fecha vencimiento: ","Fecha último revaluo: ",
                        "Fecha último crédito: ",
                        "Usuario: " };
                    model.addColumn("Concepto", arr1);
                    
                    for(garantiaWarrantsDTO w: salida)
                {
                    Object[] arr2 ={
                    w.getRut_garante_warra(),
                    w.getNombre_warra() + "  " + w.getApell_paterno_warra() + "  " + w.getApell_materno_warra(),
                    w.getCalle_warra() + "  " + w.getNum_warra(),
                    w.getNom_garantia_warra(),
                    w.getDun_warra(),w.getFolio_warra(),w.getMonto_inicial(),w.getFech_crea_warra(),
                    w.getNom_sucursal_warra(),w.getTipo_prod_warra(),w.getFech_ult_deb_warra(),
                    w.getNom_moneda_warra(),w.getFech_ult_tasa_warra(),w.getTipo_gara_warra(),w.getIngre_prod_warra(),
                    w.getFech_exti_warra(),w.getFech_ult_reval_warra(),w.getFech_ult_cred_warra(),
                    w.getNombre_usuario()
                    };
                     
                    model.addColumn("Contenido",arr2);    
                }
                    
                    Object[] arr3 = {" "," "," "," "," "," "," "," "," "," ",
                                     " "," "," "," "," "," "," "," "," "};
                    model.addColumn("Observaciones",arr3);
                    
                }
                
               
            }
        }
        catch(Exception e)
        {
            e.getMessage();
        }
    }//GEN-LAST:event_btnBuscarIngresoGarantiaWarrantActionPerformed
    
/**
     * @param args the command line arguments
     */
//    public static void main(String args[]) {
//        /*
//         * Set the Nimbus look and feel
//         */
//        //<editor-fold defaultstate="collapsed" desc=" Look and feel setting code (optional) ">
//        /*
//         * If Nimbus (introduced in Java SE 6) is not available, stay with the
//         * default look and feel. For details see
//         * http://download.oracle.com/javase/tutorial/uiswing/lookandfeel/plaf.html
//         */
//        try {
//            for (javax.swing.UIManager.LookAndFeelInfo info : javax.swing.UIManager.getInstalledLookAndFeels()) {
//                if ("Nimbus".equals(info.getName())) {
//                    javax.swing.UIManager.setLookAndFeel(info.getClassName());
//                    break;
//                }
//            }
//        } catch (ClassNotFoundException ex) {
//            java.util.logging.Logger.getLogger(IngresoGarantiaWarrant.class.getName()).log(java.util.logging.Level.SEVERE, null, ex);
//        } catch (InstantiationException ex) {
//            java.util.logging.Logger.getLogger(IngresoGarantiaWarrant.class.getName()).log(java.util.logging.Level.SEVERE, null, ex);
//        } catch (IllegalAccessException ex) {
//            java.util.logging.Logger.getLogger(IngresoGarantiaWarrant.class.getName()).log(java.util.logging.Level.SEVERE, null, ex);
//        } catch (javax.swing.UnsupportedLookAndFeelException ex) {
//            java.util.logging.Logger.getLogger(IngresoGarantiaWarrant.class.getName()).log(java.util.logging.Level.SEVERE, null, ex);
//        }
//        //</editor-fold>
//
//        /*
//         * Create and display the form
//         */
//        java.awt.EventQueue.invokeLater(new Runnable() {
//
//            public void run() {
//                new IngresoGarantiaWarrant().setVisible(true);
//            }
//        });
//    }
    // Variables declaration - do not modify//GEN-BEGIN:variables
    private javax.swing.JButton btnAdjuntarWarra;
    private javax.swing.JButton btnBuscarIngresoGarantiaWarrant;
    private javax.swing.JButton btnBuscarWarra;
    private javax.swing.JButton btnExaminarWarra;
    private javax.swing.JButton btnExportaWarra;
    private javax.swing.JButton btnGrabarWarra;
    private javax.swing.JButton btnImprimirIngresoGarantiaWarrant;
    private javax.swing.JButton btnMenuPrincipal;
    private javax.swing.JButton btnMenuPrincipalWarra;
    private javax.swing.JButton btnMenuPrincipalWarrant;
    private javax.swing.JComboBox cmbMonedaWarra;
    private javax.swing.JComboBox cmbSucursalWarra;
    private javax.swing.JComboBox cmbTipoGtiaWarra;
    private javax.swing.JComboBox cmbTipoProdWarra;
    private javax.swing.JLabel jLabel1;
    private javax.swing.JLabel jLabel10;
    private javax.swing.JLabel jLabel11;
    private javax.swing.JLabel jLabel12;
    private javax.swing.JLabel jLabel13;
    private javax.swing.JLabel jLabel14;
    private javax.swing.JLabel jLabel15;
    private javax.swing.JLabel jLabel16;
    private javax.swing.JLabel jLabel17;
    private javax.swing.JLabel jLabel2;
    private javax.swing.JLabel jLabel3;
    private javax.swing.JLabel jLabel4;
    private javax.swing.JLabel jLabel5;
    private javax.swing.JLabel jLabel6;
    private javax.swing.JLabel jLabel7;
    private javax.swing.JLabel jLabel8;
    private javax.swing.JLabel jLabel9;
    private javax.swing.JPanel jPanel1;
    private javax.swing.JPanel jPanel10;
    private javax.swing.JPanel jPanel11;
    private javax.swing.JPanel jPanel12;
    private javax.swing.JPanel jPanel2;
    private javax.swing.JPanel jPanel3;
    private javax.swing.JPanel jPanel4;
    private javax.swing.JPanel jPanel5;
    private javax.swing.JPanel jPanel6;
    private javax.swing.JPanel jPanel7;
    private javax.swing.JPanel jPanel8;
    private javax.swing.JPanel jPanel9;
    private javax.swing.JScrollPane jScrollPane1;
    private javax.swing.JScrollPane jScrollPane3;
    private javax.swing.JScrollPane jScrollPane4;
    private javax.swing.JTabbedPane jTabbedPane1;
    private com.toedter.calendar.JDateChooser jcFechExtWarra;
    private com.toedter.calendar.JDateChooser jcFechModiWarra;
    private com.toedter.calendar.JDateChooser jcFechUltCredWarra;
    private com.toedter.calendar.JDateChooser jcFechUltDebitoWarra;
    private com.toedter.calendar.JDateChooser jcFechUltRevWarra;
    private com.toedter.calendar.JDateChooser jcFechUltTasaWarra;
    private javax.swing.JLabel lblApellidoMater;
    private javax.swing.JLabel lblApellidoPater;
    private javax.swing.JLabel lblArchivo1;
    private javax.swing.JLabel lblCalleAvenida;
    private javax.swing.JLabel lblComuna;
    private javax.swing.JLabel lblDepto;
    private javax.swing.JLabel lblDescripcion;
    private javax.swing.JLabel lblFechNac;
    private javax.swing.JLabel lblNombre;
    private javax.swing.JLabel lblNumero;
    private javax.swing.JLabel lblRegion;
    private javax.swing.JLabel lblRut;
    private javax.swing.JLabel lblRutGara;
    private javax.swing.JLabel lblSexo;
    private javax.swing.JLabel lblTelMovil;
    private javax.swing.JLabel lblTelParticular;
    private javax.swing.JPanel pnlCreacionGaraWarra;
    private javax.swing.JPanel pnlDatosPersoGara;
    private javax.swing.JPanel pnlDescripGarantia;
    private javax.swing.JPanel pnlIngreseRutGarante;
    private javax.swing.JTable tbSalidaImpresionWarrant;
    private javax.swing.JTextField txtApellidoMaternoWarra;
    private javax.swing.JTextField txtApellidoPaternoWarra;
    private javax.swing.JTextField txtArchivoAdWarra;
    private javax.swing.JTextField txtBuscarDun14;
    private javax.swing.JTextField txtCalleAvenidaWarra;
    private javax.swing.JTextField txtComunaWarra;
    private javax.swing.JTextField txtDeptoWarra;
    private javax.swing.JTextArea txtDescripcionWarra;
    private javax.swing.JTextField txtDun14Warra;
    private javax.swing.JTextField txtFechNacWarra;
    private javax.swing.JTextField txtFechaCreacion;
    private javax.swing.JTextField txtMontoInicial;
    private javax.swing.JTextField txtNombreWarra;
    private javax.swing.JTextField txtNumeroWarra;
    private javax.swing.JTextArea txtOtroComentarioWarra;
    private javax.swing.JTextField txtProdWarra;
    private javax.swing.JTextField txtRegionWarra;
    private javax.swing.JTextField txtRutBuscarWarra;
    private javax.swing.JTextField txtRutGaraWarra;
    private javax.swing.JTextField txtSexoWarra;
    private javax.swing.JTextField txtTelMovilWarra;
    private javax.swing.JTextField txtTelParticularWarra;
    // End of variables declaration//GEN-END:variables

    private void limpiar() {
        txtApellidoMaternoWarra.setText(null);
        txtApellidoPaternoWarra.setText(null);
        txtArchivoAdWarra.setText(null);
        txtCalleAvenidaWarra.setText(null);
        txtComunaWarra.setText(null);
        txtDeptoWarra.setText(null);
        txtDescripcionWarra.setText(null);
        txtDun14Warra.setText(null);
        txtFechNacWarra.setText(null);
        txtMontoInicial.setText(null);
        txtNombreWarra.setText(null);
        txtNumeroWarra.setText(null);
        txtOtroComentarioWarra.setText(null);
        txtProdWarra.setText(null);
        txtRegionWarra.setText(null);
        txtRutBuscarWarra.setText(null);
        txtRutGaraWarra.setText(null);
        txtSexoWarra.setText(null);
        txtTelMovilWarra.setText(null);
        txtTelParticularWarra.setText(null);
        cmbMonedaWarra.setSelectedItem("Seleccione");
        cmbSucursalWarra.setSelectedItem("Seleccione");
        cmbTipoGtiaWarra.setSelectedItem("Seleccione");
        cmbTipoProdWarra.setSelectedItem("Seleccione");
        jcFechExtWarra.setCalendar(null);
        jcFechModiWarra.setCalendar(null);
        jcFechUltCredWarra.setCalendar(null);
        jcFechUltDebitoWarra.setCalendar(null);
        jcFechUltRevWarra.setCalendar(null);
        jcFechUltTasaWarra.setCalendar(null);
                
        
    }
}
